import { Field, Int, ObjectType } from "@nestjs/graphql";
import { TaskOnTeacherItem } from "@prisma/client";
import { TaskItemEntity } from "../task.item.entity/task.item.entity";
import { TeacherEntity } from "../teacher.entity/teacher.entity";
@ObjectType()
export class TaskOnTeacherItemEntity implements TaskOnTeacherItem {
    @Field(() => Int)
    taskItemId: number;

    @Field(() => TaskItemEntity, { nullable: true })
    taskItem?: TaskItemEntity

    @Field(() => Int)
    teacherId: number;

    @Field(() => TeacherEntity, { nullable: true })
    teacher?: TeacherEntity

    @Field(() => Int)
    count: number;

    @Field(() => Int)
    score: number;
}
